package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * dh_wechat_shares
 * 
 * @author
 */
public class WechatShares implements Serializable {
	private String	resId;

	private String	title;

	private String	intro;

	private String	author;

	private String	refid;

	private String	userid;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date	createtime;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date	edittime;

	private String	wxurl;

	private String	reflink;

	private String	coverurl;

	private String	periodicaltitle;

	private String	periodicalpath;

	private String	periodname;

	private String	coverid;

	private String	materialtag;

	private String	wxmediaid;

	private Integer	status;

	private String	uprrescategoryid;

	private String	rescategoryid;

	private String	uprrescategoryname;

	private String	rescategoryname;

	private String	htmltext;
	private String	operattime;

	public String getOperattime() {
		return operattime;
	}

	public void setOperattime(String operattime) {
		this.operattime = operattime;
	}

	private static final long	serialVersionUID	= 1L;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getRefid() {
		return refid;
	}

	public void setRefid(String refid) {
		this.refid = refid;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getEdittime() {
		return edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}

	public String getWxurl() {
		return wxurl;
	}

	public void setWxurl(String wxurl) {
		this.wxurl = wxurl;
	}

	public String getReflink() {
		return reflink;
	}

	public void setReflink(String reflink) {
		this.reflink = reflink;
	}

	public String getCoverurl() {
		return coverurl;
	}

	public void setCoverurl(String coverurl) {
		this.coverurl = coverurl;
	}

	public String getPeriodicaltitle() {
		return periodicaltitle;
	}

	public void setPeriodicaltitle(String periodicaltitle) {
		this.periodicaltitle = periodicaltitle;
	}

	public String getPeriodicalpath() {
		return periodicalpath;
	}

	public void setPeriodicalpath(String periodicalpath) {
		this.periodicalpath = periodicalpath;
	}

	public String getPeriodname() {
		return periodname;
	}

	public void setPeriodname(String periodname) {
		this.periodname = periodname;
	}

	public String getCoverid() {
		return coverid;
	}

	public void setCoverid(String coverid) {
		this.coverid = coverid;
	}

	public String getMaterialtag() {
		return materialtag;
	}

	public void setMaterialtag(String materialtag) {
		this.materialtag = materialtag;
	}

	public String getWxmediaid() {
		return wxmediaid;
	}

	public void setWxmediaid(String wxmediaid) {
		this.wxmediaid = wxmediaid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getUprrescategoryid() {
		return uprrescategoryid;
	}

	public void setUprrescategoryid(String uprrescategoryid) {
		this.uprrescategoryid = uprrescategoryid;
	}

	public String getRescategoryid() {
		return rescategoryid;
	}

	public void setRescategoryid(String rescategoryid) {
		this.rescategoryid = rescategoryid;
	}

	public String getUprrescategoryname() {
		return uprrescategoryname;
	}

	public void setUprrescategoryname(String uprrescategoryname) {
		this.uprrescategoryname = uprrescategoryname;
	}

	public String getRescategoryname() {
		return rescategoryname;
	}

	public void setRescategoryname(String rescategoryname) {
		this.rescategoryname = rescategoryname;
	}

	public String getHtmltext() {
		return htmltext;
	}

	public void setHtmltext(String htmltext) {
		this.htmltext = htmltext;
	}

	public WechatShares() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "WechatShares [resId=" + resId + ", title=" + title + ", intro=" + intro + ", author=" + author + ", refid=" + refid + ", userid="
				+ userid + ", createtime=" + createtime + ", edittime=" + edittime + ", wxurl=" + wxurl + ", reflink=" + reflink + ", coverurl="
				+ coverurl + ", periodicaltitle=" + periodicaltitle + ", periodicalpath=" + periodicalpath + ", periodname=" + periodname
				+ ", coverid=" + coverid + ", materialtag=" + materialtag + ", wxmediaid=" + wxmediaid + ", status=" + status + ", uprrescategoryid="
				+ uprrescategoryid + ", rescategoryid=" + rescategoryid + ", uprrescategoryname=" + uprrescategoryname + ", rescategoryname="
				+ rescategoryname + ", htmltext=" + htmltext + ", operattime=" + operattime + "]";
	}

	public WechatShares(String resId, String title, String intro, String author, String refid, String userid, Date createtime, Date edittime,
			String wxurl, String reflink, String coverurl, String periodicaltitle, String periodicalpath, String periodname, String coverid,
			String materialtag, String wxmediaid, Integer status, String uprrescategoryid, String rescategoryid, String uprrescategoryname,
			String rescategoryname, String htmltext, String operattime) {
		super();
		this.resId = resId;
		this.title = title;
		this.intro = intro;
		this.author = author;
		this.refid = refid;
		this.userid = userid;
		this.createtime = createtime;
		this.edittime = edittime;
		this.wxurl = wxurl;
		this.reflink = reflink;
		this.coverurl = coverurl;
		this.periodicaltitle = periodicaltitle;
		this.periodicalpath = periodicalpath;
		this.periodname = periodname;
		this.coverid = coverid;
		this.materialtag = materialtag;
		this.wxmediaid = wxmediaid;
		this.status = status;
		this.uprrescategoryid = uprrescategoryid;
		this.rescategoryid = rescategoryid;
		this.uprrescategoryname = uprrescategoryname;
		this.rescategoryname = rescategoryname;
		this.htmltext = htmltext;
		this.operattime = operattime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((author == null) ? 0 : author.hashCode());
		result = prime * result + ((coverid == null) ? 0 : coverid.hashCode());
		result = prime * result + ((coverurl == null) ? 0 : coverurl.hashCode());
		result = prime * result + ((createtime == null) ? 0 : createtime.hashCode());
		result = prime * result + ((edittime == null) ? 0 : edittime.hashCode());
		result = prime * result + ((htmltext == null) ? 0 : htmltext.hashCode());
		result = prime * result + ((intro == null) ? 0 : intro.hashCode());
		result = prime * result + ((materialtag == null) ? 0 : materialtag.hashCode());
		result = prime * result + ((operattime == null) ? 0 : operattime.hashCode());
		result = prime * result + ((periodicalpath == null) ? 0 : periodicalpath.hashCode());
		result = prime * result + ((periodicaltitle == null) ? 0 : periodicaltitle.hashCode());
		result = prime * result + ((periodname == null) ? 0 : periodname.hashCode());
		result = prime * result + ((refid == null) ? 0 : refid.hashCode());
		result = prime * result + ((reflink == null) ? 0 : reflink.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((rescategoryid == null) ? 0 : rescategoryid.hashCode());
		result = prime * result + ((rescategoryname == null) ? 0 : rescategoryname.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + ((uprrescategoryid == null) ? 0 : uprrescategoryid.hashCode());
		result = prime * result + ((uprrescategoryname == null) ? 0 : uprrescategoryname.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		result = prime * result + ((wxmediaid == null) ? 0 : wxmediaid.hashCode());
		result = prime * result + ((wxurl == null) ? 0 : wxurl.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WechatShares other = (WechatShares) obj;
		if (author == null) {
			if (other.author != null)
				return false;
		} else if (!author.equals( other.author ))
			return false;
		if (coverid == null) {
			if (other.coverid != null)
				return false;
		} else if (!coverid.equals( other.coverid ))
			return false;
		if (coverurl == null) {
			if (other.coverurl != null)
				return false;
		} else if (!coverurl.equals( other.coverurl ))
			return false;
		if (createtime == null) {
			if (other.createtime != null)
				return false;
		} else if (!createtime.equals( other.createtime ))
			return false;
		if (edittime == null) {
			if (other.edittime != null)
				return false;
		} else if (!edittime.equals( other.edittime ))
			return false;
		if (htmltext == null) {
			if (other.htmltext != null)
				return false;
		} else if (!htmltext.equals( other.htmltext ))
			return false;
		if (intro == null) {
			if (other.intro != null)
				return false;
		} else if (!intro.equals( other.intro ))
			return false;
		if (materialtag == null) {
			if (other.materialtag != null)
				return false;
		} else if (!materialtag.equals( other.materialtag ))
			return false;
		if (operattime == null) {
			if (other.operattime != null)
				return false;
		} else if (!operattime.equals( other.operattime ))
			return false;
		if (periodicalpath == null) {
			if (other.periodicalpath != null)
				return false;
		} else if (!periodicalpath.equals( other.periodicalpath ))
			return false;
		if (periodicaltitle == null) {
			if (other.periodicaltitle != null)
				return false;
		} else if (!periodicaltitle.equals( other.periodicaltitle ))
			return false;
		if (periodname == null) {
			if (other.periodname != null)
				return false;
		} else if (!periodname.equals( other.periodname ))
			return false;
		if (refid == null) {
			if (other.refid != null)
				return false;
		} else if (!refid.equals( other.refid ))
			return false;
		if (reflink == null) {
			if (other.reflink != null)
				return false;
		} else if (!reflink.equals( other.reflink ))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals( other.resId ))
			return false;
		if (rescategoryid == null) {
			if (other.rescategoryid != null)
				return false;
		} else if (!rescategoryid.equals( other.rescategoryid ))
			return false;
		if (rescategoryname == null) {
			if (other.rescategoryname != null)
				return false;
		} else if (!rescategoryname.equals( other.rescategoryname ))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals( other.status ))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals( other.title ))
			return false;
		if (uprrescategoryid == null) {
			if (other.uprrescategoryid != null)
				return false;
		} else if (!uprrescategoryid.equals( other.uprrescategoryid ))
			return false;
		if (uprrescategoryname == null) {
			if (other.uprrescategoryname != null)
				return false;
		} else if (!uprrescategoryname.equals( other.uprrescategoryname ))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals( other.userid ))
			return false;
		if (wxmediaid == null) {
			if (other.wxmediaid != null)
				return false;
		} else if (!wxmediaid.equals( other.wxmediaid ))
			return false;
		if (wxurl == null) {
			if (other.wxurl != null)
				return false;
		} else if (!wxurl.equals( other.wxurl ))
			return false;
		return true;
	}

}